package com.handyshop.mall.dubbo.commodity.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "属性项表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "nrs_attr")
public class Attr extends BaseEntity {
    /**
     * 属性编码
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "属性编码")
    private String code;

    /**
     * 属性名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "属性名称")
    private String name;

    /**
     * 属性第二名称
     */
    @TableField(value = "en_name")
    @ApiModelProperty(value = "属性第二名称")
    private String enName;

    /**
     * 属性描述
     */
    @TableField(value = "description")
    @ApiModelProperty(value = "属性描述")
    private String description;

    /**
     * 1:选择  2:文本
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "1:选择  2:文本")
    private Integer type;

    /**
     * 是否导购(0:否 1:是)
     */
    @TableField(value = "guide_flag")
    @ApiModelProperty(value = "是否导购(0:否 1:是)")
    private Boolean guideFlag;

    /**
     * 是否可编辑;允许商家自定义属性值(0:否 1:是)
     */
    @TableField(value = "edit_flag")
    @ApiModelProperty(value = "是否可编辑;允许商家自定义属性值(0:否 1:是)")
    private Boolean editFlag;

    /**
     * 是否必填(0:否 1:是)
     */
    @TableField(value = "require_flag")
    @ApiModelProperty(value = "是否必填(0:否 1:是)")
    private Boolean requireFlag;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序")
    private Integer sort;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_NAME = "name";

    public static final String COL_EN_NAME = "en_name";

    public static final String COL_DESCRIPTION = "description";

    public static final String COL_TYPE = "type";

    public static final String COL_GUIDE_FLAG = "guide_flag";

    public static final String COL_EDIT_FLAG = "edit_flag";

    public static final String COL_REQUIRE_FLAG = "require_flag";

    public static final String COL_SORT = "sort";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}